﻿using Fast;
using Fast.Extensions.RabbitMQ;

namespace Microsoft.Extensions.DependencyInjection
{
    [SkipScan]
    public static class RabbitMqServiceCollectionExtensions
    {
        /// <summary>
        /// 添加 RabbitMQ 服务
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddRabbitMQ(this IServiceCollection services)
        {
            services.AddConfigureOptions<FastRabbitMqOptions>();

            return services;
        }
    }
}